package com.jy.rhin.support.parsing;

import com.jy.rhin.application.enums.DocumentTypeEnum;
import com.jy.rhin.facade.dto.DocumentModule;
import com.jy.rhin.facade.dto.TemplateRespDto;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author：hb
 * @Package：com.jy.rhin.support.parsing
 * @Project：rhin-aggr-service
 * @Date：19/04/2024 11:20 am
 */
@Component
public class HealthCheckUpAt42DaysPostpartumParser extends BaseDocumentParser{
    @Override
    public DocumentTypeEnum getDocumentType() {
        return DocumentTypeEnum.HEALTH_CHECK_UP_AT_42_DAYS_POSTPARTUM;
    }

    @Override
    public List<TemplateRespDto> documentParsing(Object json, List<TemplateRespDto> templateRespList) {
        return null;
    }

    @Override
    public List<DocumentModule> createBodyModule() {
        List<DocumentModule> list=new ArrayList<>();
        //文档体模块
        list.add(new DocumentModule("主要健康问题章节","/component/structuredBody/component/section/code[@code='11450-4']"));
        list.add(new DocumentModule("生命体征章节","/component/structuredBody/component/section/code[@code='8716-3']"));
        list.add(new DocumentModule("乳腺章节","/component/structuredBody/component/section/code[@code='10193-1']"));
        list.add(new DocumentModule("生殖器章节","/component/structuredBody/component/section/code[@code='11400-9']"));
        list.add(new DocumentModule("健康评估章节","/component/structuredBody/component/section/code[@code='51848-0']"));
        list.add(new DocumentModule("健康指导章节","/component/structuredBody/component/section/code[@code='69730-0']"));
        list.add(new DocumentModule("转诊建议章节","/component/structuredBody/component/section/code[@code='18776-1']"));
        list.add(new DocumentModule("下次随访安排章节","/component/structuredBody/component/section/code[@displayName='下次随访安排']"));
        return list;
    }
}
